<?php 
$this->breadcrumbs=array(
	'Browse Cafés',
);
?>

<h1>Browse Cafés</h1>
<?php if(Yii::app()->user->hasFlash('search')){ ?>

<div class="rc_main">
	<?php echo Yii::app()->user->getFlash('search'); ?>
</div>

<?php } ?>

<!-- <div class="hotshotlist_pager"><?php 
//var_dump($dataProvider->getPagination());
//$this->widget('CLinkPager',array('pages'=>$dataProvider->getPagination()));
?></div>  -->
<div class="hotshot_list"><?php 
foreach($dataProvider->getData() as $hotshot){
	$this->renderPartial('_listItem',array(
		'hotshot'=>$hotshot,
	));
} ?></div>
<div class="hotshotlist_pager"><?php 
//var_dump($dataProvider->getPagination());
$this->widget('CLinkPager',array('pages'=>$dataProvider->getPagination()));
?></div>
<?php
/*

$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'coffee-shop-grid',
'dataProvider'=>$model->frontEndSearch(),
//'filter'=>$model,
'columns'=>array(
//'id',
array(
'name' => 'name',
'type'=>'raw',
'value' => 'CHtml::link(CHtml::encode($data->name),array("coffeeShop/view","id"=>$data->id))',
),
'address',
'suburb',
//'beanRating',
'phone',
'review',

),
)); */

?>
